package com.greendragon.service.frontend; 

import java.util.List;

/** 
 * @author wulibin, exceptsky@gmail.com, 2011-11-7 下午08:33:52
 * 
 */
public interface IBaseFrontendService<T>{
	public T get(Long id);
	
	public long getTotalCount();
	
	public long getCountByCondition(T expEntity);
	
	public int getPageLength();
	
	/*page 从第0页开始*/
	public List<T> getPage(int page);
	
	public List<T> getAll();
	
	public List<T> getByCondition(T expEntity, int page);
	
	public void setPageLength(int length);
}
 